﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Dome2
{
    class DeliveryRobot:Robot
    {
        public int WorkHours { get; set; }      
        public DeliveryRobot( string name, int WorkHours) : base(name)
        {
            this.WorkHours = WorkHours;
        }
        public override void Working()
        {
            Console.WriteLine("我是{0}机器人,我一次性可以干你{1}小时，你喜欢我嘛？？？洋宝！", base.name,this.WorkHours);

        }
    }
}
